package day20171019.test01;

abstract class Shape {
    public int x;
    public int y;
    public int width;
    public int height;

    public Shape(){}

    public Shape(int x1,int y1,int width1,int height1){
        x = x1;
        y = y1;
        width = width1;
        height = height1;
    }
    abstract double getArea();//抽象方法，只能声明
    abstract double getPerimeter();

}
